//
//  Header.h
//  恒记
//
//  Created by can on 16/5/5.
//  Copyright © 2016年 can. All rights reserved.
//

#import <UIKit/UIKit.h>


#define RGB_COLOR(_R,_G,_B,_A) [UIColor colorWithRed:_R/255.0 green:_G/255.0 blue:_B/255.0 alpha:_A]
#define CRM(x, y, width, height)    CGRectMake(x, y, width, height)
#define CPM(x, y)                   CGPointMake(x, y)
#define SCREEN_WIDTH                [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT               [UIScreen mainScreen].bounds.size.height
#define MID_X                       CGRectGetMidX([UIScreen mainScreen].bounds)
#define MID_Y                       CGRectGetMidY([UIScreen mainScreen].bounds)

#define PROPORTION_W SCREEN_WIDTH/414
#define PROPORTION_H SCREEN_HEIGHT/736

#define P_width PROPORTION_W * SCREEN_WIDTH
#define P_height PROPORTION_H * SCREEN_HEIGHT